package com.qfedu.fmmall.dao;

import com.qfedu.fmmall.entity.ShoppingCart;
import com.qfedu.fmmall.entity.ShoppingCartVo;
import com.qfedu.fmmall.general.generalDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShoppingCartMapper extends generalDao<ShoppingCart> {

    List<ShoppingCartVo> selectShopCartByUserId(int userId);

    int updateCartNumById(@Param("cartId")int cartId,@Param("num")int num);

    List<ShoppingCartVo> selectShopCartByCIds(List<Integer> CIds);

}